package domain;

/**
 * @author cpp
 * @version 1.0
 * @date 2025/3/19 12:26
 * @description 鲜花实体层
 */

public class Flower {
    //属性
    private int codenumber;
    private String flowername;
    private int sales;
    private double price;
    private String date;
    private String saler;
    private String remarks;

    //无参构造
    public Flower() {
    }

    //有参构造
    public Flower(int codenumber, String flowername, int sales, double price, String date, String saler, String remarks) {
        this.codenumber = codenumber;
        this.flowername = flowername;
        this.sales = sales;
        this.price = price;
        this.date = date;
        this.saler = saler;
        this.remarks = remarks;
    }

    public int getCodenumber() {
        return codenumber;
    }

    public void setCodenumber(int codenumber) {
        this.codenumber = codenumber;
    }

    public String getFlowername() {
        return flowername;
    }

    public void setFlowername(String flowername) {
        this.flowername = flowername;
    }

    public int getSales() {
        return sales;
    }

    public void setSales(int sales) {
        this.sales = sales;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getSaler() {
        return saler;
    }

    public void setSaler(String saler) {
        this.saler = saler;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

//行为


    //打印查询订单
    public String show() {
        return codenumber+"\t"+ flowername+"\t"+ sales+"\t"+ price+"\t"+ date+"\t" +saler+"\t"+ remarks;
    }
    }


